package com.iotechn.unimall.data.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dobbinsoft.fw.core.annotation.doc.ApiEntity;
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.core.entiy.SuperDTO;
import lombok.Data;

@Data
@ApiEntity(description = "文章传输模型")
public class ArticleDTO extends SuperDTO {

    @ApiField(description = "标题")
    private String title;

    @ApiField(description = "分类id")
    private Long articleClassId;

    @ApiField(description = "状态")
    private Integer status;

    @ApiField(description = "封面图片")
    private String imgUrl;

    @ApiField(description = "热度")
    private Long heat;

    @ApiField(description = "分类名称")
    @TableField(exist = false)
    private String name;
}
